// pages/article/article.js
Page({
  data:{
    abstract:'default',
    title:'default',
    imgUrls:'',
    time:'',
    count:'',
    tag:''
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    this.setData({
      abstract:options.abstract,
      title:options.title,
      imgUrls:options.imgUrls,
      time:options.time,
      count:options.count,
      tag:options.tag
    })
    wx.setNavigationBarTitle({
      title: options.abstract,
      success: function(res) {
        // success
      }
    })
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})